package com.showdoc.mapper.impl;

import com.showdoc.mapper.UserMapper;
import com.showdoc.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class UserMapperImpl implements UserMapper {
    @Autowired
    private  UserMapper userMapper;
    @Override
    public User selectByUid(long uid) {
        return userMapper.selectByUid(uid);
    }

    @Override
    public User findByName(String username) {
        return userMapper.findByName(username);
    }

    @Override
    public User loginCheck(String username, String password) {
        return userMapper.loginCheck(username,password);
    }

    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();
    }

    @Override
    public void save(User user) {
        this.userMapper.save(user);
    }

    @Override
    public void revisePwd(String username, String newPwd) {
        this.userMapper.revisePwd(username,newPwd);
    }

}
